using System;
using UnityEngine;

namespace LS.GameKit
{
    [Serializable]
    public class EnumContent
    {
        public string name;
        public int value;

        public EnumContent()
        {
            name = string.Empty;
            value = 0;
        }
        
        public EnumContent(string name, int value)
        {
            this.name = name;
            this.value = value;
        }
        public static explicit operator int(EnumContent value)
        {
            return value.value;
        }

        public override string ToString()
        {
            return name;
        }
    }
}
